import { reqGetBannerVia } from "@/api";

const state = {
  viaList: {}
};

const getters = {};

const actions = {
  getBannerVia({ commit }) {
    reqGetBannerVia()
      .then((viaList) => {
        commit("REQ_GET_BANNER_VIA", viaList.data.data)
      })
  }
};

const mutations = {
  REQ_GET_BANNER_VIA(state, viaList) {
    state.viaList = viaList
  }
};

export default {
  state,
  getters,
  actions,
  mutations,
};
